import store from '@/store';

//字符串拼接
function strFormat(str) {
	return str < 10 ? `0${str}` : str;
}
// 获取当前时间03-30(今天)15:00-17:00
export const getNowTimer = () => {
    const dates = new Date();
    const year = dates.getFullYear();
    const month = dates.getMonth() + 1;
	const date = dates.getDate();
    const hour = dates.getHours();
	const min = dates.getMinutes();
    const second = dates.getSeconds();
    return `${year}-${strFormat(month)}-${strFormat(date)} ${strFormat(hour)}:${strFormat(min)}:${strFormat(second)}`
    // return `${strFormat(month)}-${strFormat(date)}(今天)${strFormat(hour)}:${strFormat(min)}`
}


